﻿using System;

namespace Database.DTO
{

[Serializable]
public class AccountDTO
{
/// <summary>
/// 
/// </summary>
public int AID { get; set; }
/// <summary>
/// 
/// </summary>
public string Email { get; set; }
/// <summary>
/// 
/// </summary>
public string Password { get; set; }
/// <summary>
/// 用户昵称
/// </summary>
public string Account { get; set; }
}
[Serializable]
public class Auto_setDTO
{
/// <summary>
/// 
/// </summary>
public int ID { get; set; }
/// <summary>
/// 用户ID
/// </summary>
public int AID { get; set; }
/// <summary>
/// 自动记账方式（1=每天，2=每个工作日）
/// </summary>
public int AutoType { get; set; }
/// <summary>
/// 
/// </summary>
public decimal Money { get; set; }
/// <summary>
/// 账户ID
/// </summary>
public int Card_ID { get; set; }
/// <summary>
/// 类型ID
/// </summary>
public int Category_ID { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 最后更新日期
/// </summary>
public DateTime Last_Update_Time { get; set; }
}
[Serializable]
public class BankbookDTO
{
/// <summary>
/// 
/// </summary>
public int ID { get; set; }
/// <summary>
/// 用户账号
/// </summary>
public int AID { get; set; }
/// <summary>
/// 
/// </summary>
public int Card_ID { get; set; }
/// <summary>
/// 利率
/// </summary>
public decimal Rate { get; set; }
/// <summary>
/// 本金
/// </summary>
public decimal Capital { get; set; }
/// <summary>
/// 周期
/// </summary>
public int Cycle { get; set; }
/// <summary>
/// 到期后本金和
/// </summary>
public decimal Total { get; set; }
/// <summary>
/// 存款日
/// </summary>
public DateTime Save_Time { get; set; }
}
[Serializable]
public class CardDTO
{
/// <summary>
/// 
/// </summary>
public int CID { get; set; }
/// <summary>
/// 账户所属人
/// </summary>
public int AID { get; set; }
/// <summary>
/// 账户类型（1-现金/借记卡,2-信用卡,3-股票基金卡）
/// </summary>
public int Type { get; set; }
/// <summary>
/// 
/// </summary>
public string Title { get; set; }
/// <summary>
/// 账户金额
/// </summary>
public decimal Money { get; set; }
/// <summary>
/// 账户说明
/// </summary>
public string Description { get; set; }
/// <summary>
/// 卡号
/// </summary>
public string CardNumber { get; set; }
/// <summary>
/// Organization表ID
/// </summary>
public int OID { get; set; }
/// <summary>
/// 信用额度[信用卡专用]
/// </summary>
public decimal Credit_Line { get; set; }
/// <summary>
/// 账单日[信用卡专用]
/// </summary>
public DateTime Bill_Date { get; set; }
/// <summary>
/// 还款日[信用卡专用]
/// </summary>
public DateTime Due_Date { get; set; }
}
[Serializable]
public class CategoryDTO
{
/// <summary>
/// 
/// </summary>
public int ID { get; set; }
/// <summary>
/// 
/// </summary>
public string Title { get; set; }
/// <summary>
/// 
/// </summary>
public int ParentID { get; set; }
/// <summary>
/// 1-付出，2-收入，3-付出&收入
/// </summary>
public int Purpose { get; set; }
/// <summary>
/// 0-系统默认，其他用户自定义
/// </summary>
public int OwnerID { get; set; }
}
[Serializable]
public class Category_removeDTO
{
/// <summary>
/// 
/// </summary>
public int ID { get; set; }
/// <summary>
/// 
/// </summary>
public int OwnerID { get; set; }
/// <summary>
/// 被移除系统分类ID
/// </summary>
public int RemoveID { get; set; }
}
[Serializable]
public class Const_rateDTO
{
/// <summary>
/// 
/// </summary>
public int ID { get; set; }
/// <summary>
/// 
/// </summary>
public float Rate { get; set; }
/// <summary>
/// 
/// </summary>
public int Months { get; set; }
/// <summary>
/// 
/// </summary>
public string Title { get; set; }
}
[Serializable]
public class OrganizationDTO
{
/// <summary>
/// 
/// </summary>
public int OID { get; set; }
/// <summary>
/// 
/// </summary>
public string Title { get; set; }
/// <summary>
/// 
/// </summary>
public string URL { get; set; }
/// <summary>
/// 排序字段
/// </summary>
public int Order { get; set; }
/// <summary>
/// 机构类型，1-银行
/// </summary>
public int Type { get; set; }
}
[Serializable]
public class RecordDTO
{
/// <summary>
/// 
/// </summary>
public int RID { get; set; }
/// <summary>
/// 记录人ID
/// </summary>
public int AID { get; set; }
/// <summary>
/// 
/// </summary>
public decimal Money { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime Create_Time { get; set; }
/// <summary>
/// 账户ID
/// </summary>
public int Card_ID { get; set; }
/// <summary>
/// 类型ID
/// </summary>
public int Category_ID { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}


}